package com.wy.service;

import com.wy.bean.Article;
import com.wy.dao.ArticleDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {

    @Resource
    private ArticleDao articleDao;

    @Override
    public List<Article> list(Article article) {
        return articleDao.list(article);
    }

    @Override
    public void insert(Article article) {
        articleDao.insert(article);
    }

    @Override
    public void deletebth(String[] ids) {
        articleDao.deletebth(ids);
    }
}
